import request from '@/utils/request'

export function listApplication(query) {
  return request({
    url: '/api/app/list',
    method: 'get',
    params: query
  })
}

export function getApplication(applicationId) {
  return request({
    url: '/api/app/' + applicationId,
    method: 'get'
  })
}

export function saveOrUpdateApplication(data) {
  return request({
    url: '/api/app/saveOrUpdate',
    method: 'post',
    data: data
  })
}

export function delApplication(applicationId) {
  return request({
    url: '/api/app/del/' + applicationId,
    method: 'post'
  })
}
